<html>
<head>
<title>Basic example with multi axis and fill | CurvedLines</title>
<style>
.chart-style {
    width: 500px;
    height: 300px;
}
</style>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/flot/flot/v0.8.3/jquery.flot.js"></script>
<script type="text/javascript" src="https://rawgit.com/MichaelZinsmaier/CurvedLines/master/curvedLines.js"></script>

<script type="text/javascript">
$(function() {
var d1 = [[20,20], [42,60], [54, 20], [80,80]];
var d2 = [[20,700], [80,300]];

//flot options
var options = {
                 series: {
                     curvedLines: {active: true}
                 },
                 yaxes: [{ min:10, max: 90}, {position: 'right'}]
              };

//plotting
$.plot($("#flotContainer"),[
    {
        data: d1,
        lines: { show: true, fill: true, fillColor: "#C3C3C3", lineWidth: 3},
        //curve the line  (old pre 1.0.0 plotting function)
        curvedLines: {
                        apply: true,
                        legacyOverride: true // <- use legacy plotting function
                     }
    }, { 
        data: d1,
        points: { show: true }
    }, {
        data: d2,
        yaxis: 2,
        lines: { show: true, lineWidth: 3},
    }, {
        data: d2,
        yaxis: 2,
        points: { show: true }
    }
], options);
});
</script>
</head>

<body>

<h4>CurvedLines Basic example with multi axis and fill</h4>
<div id="flotContainer" class="chart-style"></div>
<a href="index.html">Return to CurvedLines Examples list</a>

</body>
</html>
